# age = int(input("请输入年龄:"))
# name = input("请输入姓名:")
#
# if age > 18 and name:
#     print("age is {} and name is {}".format(age, name))
# else:
#     print("game over")

# print('*' * 10)
#
# import random
#
# while True:
#     num = random.randint(1, 10)
#     print(num)
#     my_num = input("输入猜测的数字:")
#     if my_num.upper() == 'Q':
#         break
#
#     if int(my_num) == num:
#         print("中大奖了")
#     else:
#         print("未中奖")

# for item in range(1, 10):
#     print(item)

# print("hello\n"*10000)
# for i in range(1, 6):
#     # print("赵飞很饿，正在吃第%d个馒头" % (i + 1))
#     print("赵飞很饿，正在吃第{}个馒头".format(i))
# print("终于吃饱了")

name = "张三"
num = int(input("请输入需要的馒头数量："))
for i in range(num):
    print("{}很饿，正在吃第{}个馒头".format(name, i + 1))
else:  # 没给数据或者数据已经没了 会进入else
    print("还没给我馒头, {}饿哭了".format(name))
print("--------------------------------------" * 2)
